*** Settings ***
Suite Setup       Set Log Level    trace
Test Setup        One APP Login    &{appUser1}[name]    &{appUser1}[pwd]
Resource          ../../../Resources_Config.robot

*** Test Cases ***
收藏问答-正常流程
    [Tags]    L0
    #参数准备
    ${url}    Set Variable    ${question-book-mark-or-cancel}
    ${questionId}    Set Variable    501
    ${isBookMark}    Set Variable    ${True}
    ${postdata}    Create Dictionary    questionId=${questionId}    isBookMark=${isBookMark}
    #发送请求
    ${rsp}    Post Request    ${url}    ${postdata}
    #校验结果
    Should Be Equal As Strings    ${rsp['code']}    200
    Should Be Equal As Strings    ${rsp['body']['returnStatus']}    SUCCEED

取消收藏问答-正常流程
    [Tags]    L0
    #参数准备
    ${url}    Set Variable    ${question-book-mark-or-cancel}
    ${questionId}    Set Variable    501
    ${isBookMark}    Set Variable    ${False}
    ${postdata}    Create Dictionary    questionId=${questionId}    isBookMark=${isBookMark}
    #发送请求
    ${rsp}    Post Request    ${url}    ${postdata}
    #校验结果
    Should Be Equal As Strings    ${rsp['code']}    200
    Should Be Equal As Strings    ${rsp['body']['returnStatus']}    SUCCEED
